package com.gulimall.auth.server.feign;

import com.gulimall.auth.server.vo.UserLoginVo;
import com.gulimall.auth.server.vo.UserRegisterVo;
import com.gulimall.auth.server.vo.WeiboAccessToken;
import com.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author djg
 * @date 2020/8/27
 * @des
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo userRegisterVo);


    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R weiboLogin(@RequestBody WeiboAccessToken vo);

}
